const path = require('path');
function resolve (dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
    configureWebpack: {
        devtool: 'source-map'
    },
    productionSourceMap: false,
    chainWebpack: (config)=>{
        //修改文件引入自定义路径
        config.resolve.alias
            .set('@', resolve('src'))
    },
    lintOnSave: false,
    parallel: require('os').cpus().length>1,
    devServer: {
        port: 8088,
        proxy: {
          // '/zhcs-baobiao': {
          //   target: 'http://10.9.103.101:8106/',
          //   changeOrigin: true
          // }
        }
    }
}